zeek38.html

 

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Transform Property</title>
    <style>
        * {
            margin0;
            padding0;
        }

        .container {
            background-colorgreenyellow;
            height700px;
            displayflex;
            justify-contentcenter;
            align-itemscenter;
        }

        .box {
            borderfirebrick solid 2px;
            width34vw;
            height34vh;
            displayflex;
            justify-contentcenter;
            align-itemscenter;
            background-colorrgb(135420);
            colorhoneydew;
            font-size20px;
            transitionall;
            transition-duration5s;

        }

        .box:hover {

            /* transform: rotate(360deg);        (Will rotate box by 360 degrees.) */
            /* transform:skew(45deg);            (Will tilt the box by 45 degrees) */
            /* transform: scale(2);            (Box will increase by a factor of 2) */
            transformtranslate(100px,150px);/*(will move box by 100px in X and 150px 
in Y w.r.t original position)*/
           

        }
    </style>
</head>

<body>
    <div class="container">
        <div class="box">
            This is a box with tranform property
        </div>
    </div>

</body>

</html>

Comments

Popular posts from this blog

INDEX OF ZEEK HTML,CSS and JS